import { message, Modal } from 'ant-design-vue'

const showConfirm = (content,option , title = "系统提示" ) => {
    return Modal.confirm({
        title,
        icon: null,
        content,
        onOk() {
            option?.onOk();
        },
        onCancel() {
            option?.onCancel();
        },
        cancelText: "取消",
        okText: "确定",
        ...option
      })
    
};
const showWarning = (content) => {
    return message.warn({
        content,
    })
};

const showSuccess = (content) => {
    return message.success({
        content,
    })
};

const showMessage = (content) => {
    return message.info({
        content,
    })
};

const showError = (content) => {
    return message.error({
        content,
    })
};



export { showConfirm, showSuccess, showMessage, showError, showWarning }
